import {requests} from "@/api/request";

/**
 * 上传新数据
 * @param data
 * @returns {*}
 */
export const reqPostTrack =(data)=>requests({
    url:'/track',
    data,
    method:"post"
})
/**
 * 上传数据
 * @param data
 * @returns {*}
 */
export const reqPutTrack = (data)=>requests({
    url:'/track',
    data,
    method:"put"
})
/**
 * 路径跟踪，上传新的坐标点
 * @param mapData
 * @returns {AxiosPromise}
 */
export const reqPutAddPath = (mapData)=>requests({
    url:'/track/addPath',
    data:mapData,
    method:'put',
})